Skip to main content

Request Credential

AutomatR.DefaultActivities.WindowsCredentials.RequestCredential

The "Request Credential" activity in AutomatR presents a dialog box to the user, requesting them to provide their credentials. The entered username and password are then stored as string variables and a secure string variable, respectively. These credentials can be utilized for logging into other applications or services, enhancing the security of automation workflows.

Properties

NameDescription
Input
TitleSpecifies the title of the dialogue box displayed to the user. This title appears at the top of the dialogue box, providing context for the credential input. String variables containing the title.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Request Credential" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 5 seconds, enter 5.
Output
PasswordSpecifies the password entered by the user in the dialogue box. String variables to store the obtained password.
Secure PasswordRepresents the user's password as a secure string variable. SecureString is a secure way to store sensitive information like passwords. This secure password can be used for authentication or securely storing credentials. SecureString variables to store the obtained secure password.
User NameSpecifies the username entered by the user in the dialogue box. String variables to store the obtained username.

How to use:

  1. Drag and drop the "Request Credential" activity onto the workflow.
  2. Specify the title for the dialogue box that will be displayed to the user.
  3. Optionally, set the delay for the execution.
  4. Execute the workflow to present the dialogue box to the user, requesting their credentials.
  5. The obtained username, password, and secure password can be used for further authentication or securely storing credentials.

Example:

Consider an example where the "Request Credential" activity is used to prompt the user for their credentials:

Request Credential:
Display Name: "Prompt User for Credentials"
Title: "Enter Your Credentials"
User Name: obtainedUserName
Password: obtainedPassword
Secure Password: obtainedSecurePassword

In this example, the activity displays a dialogue box with the title "Enter Your Credentials," prompting the user to enter their username and password. The obtained username is stored in the string variable "obtainedUserName," the password is stored in the string variable "obtainedPassword," and the secure password is stored in the SecureString variable "obtainedSecurePassword" for further handling in the workflow.

Note: Ensure that the title is specified before executing this activity.